package xcmg.device.dao.entity.file;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

@Data
@ToString(callSuper = true)
@ApiModel(value = "FileRecord", description = "文件记录信息")
public class FileRecord{
    private static final long serialVersionUID = -1L;

    @ApiModelProperty(
            value = "Id",
            name = "id", example = "1"
    )
    private Long id;

    @ApiModelProperty(value = "图片名称")
    private String filename;

    @ApiModelProperty(value = "ftp返回链接")
    private String imageUrl;

    @ApiModelProperty(value = "图片上传结果描述")
    private String desc;

    //创建者（操作者）ID
    @ApiModelProperty(value = "创建者（操作者）ID", name = "created_by", example = "1")
    private Long createdBy;

    //创建者登陆名称，冗余
    @ApiModelProperty(value = "创建者登陆名称，冗余", name = "created_user_name", example = "admin")
    private String createdUserName;

    //创建时间
    @ApiModelProperty(value = "创建时间", name = "created_time", example = "2019-09-09 22:00:00")
    private Date createdTime;

    public FileRecord() {

    }

    public FileRecord(String imageName) {
        this.filename = imageName;
    }

}
